<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<center>
		<table border="1" width="600px">
			<tr>
				<td>标题</td>
				<td>作者</td>
				<td>描述</td>
				<td>操作</td>
			</tr>
			<?php foreach ($res as $key => $value) { ?>
			<tr>
				<td><?php echo $value["title"];?></td>
				<td><?php echo $value["writer"];?></td>
				<td><?php echo $value["descs"];?></td>
				<td>
					<a href="xq.php?id=<?php echo $value['id'];?>">详情</a>
				</td>
			</tr>
			<?php }?>
		</table>
		<?php echo $str;?>
	</center>
</body>
</html>